.product-filters {
  .hide {
    display: none;
  }
  h3 {
    background: $light-gray;
    padding: $global-padding;
    font-weight: bold;
    cursor: pointer;
    .collapse-filters-icon {
      float: right !important;
      width: 20px;
      height: 20px;
    }
  }
  ul {
    padding: $global-padding / 2 0;
    list-style: none;
    margin-bottom: 0;
    li {
      padding-left: $global-padding;
      input {
        margin-right: $global-margin;
      }
    }
  }
  &__attributes {
    ul {
      li {
        label {
          cursor: pointer;
          outline: 0;
        }
      }
    }
  }
  &__price-range {
    h3 {
      margin-bottom: $global-margin;
      span {
        width: 100%;
        margin: 0;
        display: inline;
      }
    }
    input {
      width: 40%;
      display: inline-block;
    }
    span {
      width: 20%;
      text-align: center;
      display: inline-block;
    }
    button {
      width: 100%;
      margin-top: $global-margin;
    }
  }
  &__categories {
    padding: $global-padding*2 0;
    h2 {
      font-size: 1.8rem;
      color: $body-color;
      padding-bottom: 0;
    }
    ul {
      list-style: none;
      padding: 0 $global-padding;
      margin-bottom: 0;
      li {
        padding-left: 0;
        a {
          font-size: 1.2rem;
          color: $body-color;
          padding-right: $global-padding/2;
        }
      }
    }
    &__parents {
      padding-left: $global-padding;
      a {
        color: $body-color;
      }
      svg {
        vertical-align: text-top;
        margin-right: $global-margin / 2;
      }
    }
    &__childs {
      padding-left: $global-padding*2.5;
      a {
        font-size: 1rem;
      }
      &.no-parent {
        padding-left: $global-padding;
      }
    }
  }
}

.filters-menu {
  &__label {
    text-transform: uppercase;
    cursor: pointer;
    padding-left: $global-padding;
  }
  &__icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: $blue;
    margin-left: $global-margin/2;
    border-radius: 50%;
  }
}

.sort-by {
  text-align: right;
  position: relative;
  .btn-link {
    padding-right: $global-padding;
    color: $body-color;
    outline: 0;
    svg {
      vertical-align: middle;
      margin-left: $global-padding/2;
      height: 15px;
    }
  }
  ul {
    width: 20rem;
    list-style: none;
    background: $light-gray;
    box-shadow: 3px 3px 3px 0px rgba($gray, 0.75);
    position: absolute;
    top: 2.5rem;
    right: 0;
    z-index: 999;
    padding: $global-padding $global-padding*2;
    li {
      text-align: left;
      padding-top: $global-padding/2;
      overflow: hidden;
      border-bottom: solid 1px $gray;
      padding-bottom: $global-padding;
      .col-6 {
        div {
          cursor: pointer;
        }
      }
      span {
        &:hover {
          text-decoration: underline;
        }
      }
      svg {
        margin-top: $global-padding/3;
      }
      &:last-child {
        border: none;
        padding-bottom: 0;
      }
      &:after {
        content: "";
      }
    }
    &:before {
        content: '';
        display: block;
        width: 15px;
        height: 10px;
        position: absolute;
        top: -10px;
        right: 15px;
        background-color: $light-gray;
        clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
      }
  }
  .click-area {
    width: 100%;
    height: 100%;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 998;
    &.hide {
      display: none;
    }
  }
  .sort-order-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
  }
}

.clear-filters {
  color: $body-color;
  font-weight: 400;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1.3rem;
}

.load-more {
  clear: both;
  text-align: center;
}
